package com.example.paymentsystem.controller;

import com.example.paymentsystem.common.PaymentRequest;
import com.example.paymentsystem.common.PaymentResponse;
import com.example.paymentsystem.service.PaymentService;

/**
 * @author YiYuan
 * @data 2025/6/25
 * @apoNote
 */
public class PaymentController {

    private PaymentService paymentService;

    public PaymentResponse processPayment(PaymentRequest request) {
        System.out.println("Received payment request: " + request.getOrderId());

        return paymentService.processPayment(request);
    }

}
